﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InsertTicketDetailControl.ascx.cs" Inherits="Control_InsertTicketDetailControl" %>
<table>
    <tr>
        <td><asp:Label ID="CustomerName" runat="server" Text="Customer Name: "></asp:Label></td>
        <td> <asp:DropDownList ID="DropDownListCus" runat="server" Width="179px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
       </td>
    </tr>
    <tr>
        <td><asp:Label ID="Label1" runat="server" Text="BusNo: "></asp:Label></td>
        <td>
            <asp:DropDownList ID="DropDownListBusno" runat="server" Width="179px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>

    <tr>
        <td><asp:Label ID="Label3" runat="server" Text="Price: "></asp:Label></td>
        <td><asp:TextBox ID="txtPrice" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtPrice" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtPrice" ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[1-9][0-9]*$"> Price must be a number</asp:RegularExpressionValidator>
        </td>
    </tr>
     <tr>
        <td><asp:Label ID="Label10" runat="server" Text="SeatNo: "></asp:Label></td>
        <td><asp:TextBox ID="txtSeatNo" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtSeatNo" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[a-zA-Z0-9/s]{1,}$" ControlToValidate="txtSeatNo">SeatNo  do not enter character special</asp:RegularExpressionValidator>
         </td>
    </tr>
    <tr>
        <td><asp:Button ID="btnAdd" runat="server"
        Text="Add" onclick="btnAdd_Click"  /></td>
        <td><asp:Button ID="btnreset" runat="server" 
        Text="Reset" onclick="btnreset_Click"  /></td>
    </tr>
</table>